package sctu.edu.java.year2016.team07.nieying.practice.qianjizhang;

import sctu.edu.java.year2016.team07.nieying.practice.qianjizhang.Book1;

import java.util.Random;

/**
 * Created by Administrator on 2016/5/25 0025.
 */
public class Text_2 {
    public static void main(String[] args){
        String[] titles={"java","c++","c"};
        for(int i=0;i<5;i++){
         new Book1(titles[new Random().nextInt(3)]);
       }
        System.out.println("总计销售"+Book1.getCounter()+"本图书！");
    }
}
